package com.mooc.house.biz.config;

//@Configuration
public class DruidConfig {

//	@ConfigurationProperties(prefix="spring.druid")
//	@Bean(initMethod="init",destroyMethod="close")
//	public DruidDataSource dataSource(Filter statFilter) throws SQLException{
//		DruidDataSource dataSource = new DruidDataSource();
//		dataSource.setProxyFilters(Lists.newArrayList(statFilter()));
//		return dataSource;
//	}
	
//	@Bean
//	public Filter statFilter(){
//		StatFilter filter = new StatFilter();
//		filter.setSlowSqlMillis(5000);
//		filter.setLogSlowSql(true);
//		filter.setMergeSql(true);
//		return filter;
//	}
	
	
//	@Bean
//	public ServletRegistrationBean servletRegistrationBean(){
//		return new ServletRegistrationBean(new StatViewServlet(), "/druid/*");
//	}
	
}
